package com.tem.purchase.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 腾木
 * @since 2023-11-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("purchase_order_item")
@ApiModel(value="PurchaseOrderItem对象", description="")
public class PurchaseOrderItem implements Serializable {
    private static final long serialVersionUID=435456709123L;
    @ApiModelProperty(value = "项目")
    @TableId("purchase_order_item_id")
    private Long purchaseOrderItemId;

    @ApiModelProperty(value = "采购单")
    @TableField("purchase_order_id")
    private Long purchaseOrderId;

    @ApiModelProperty(value = "产品")
    @TableField("product_gg_id")
    private Long productGgId;

    @ApiModelProperty(value = "采购数量 最小单位")
    @TableField("quantity")
    private BigDecimal quantity;

    @ApiModelProperty(value = "单价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "总金额")
    @TableField("total")
    private BigDecimal total;

    @ApiModelProperty(value = "折后金额")
    @TableField("discount")
    private BigDecimal discount;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
